package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the SMPREGPH database table.
 * 
 */
@Entity
@Table(name="SMPREGPH")
public class Smpregph implements Serializable {
	private static final long serialVersionUID = 1L;
	private SmpregphPK id;
	private Date addedon;
	private String areacode;
	private String countrycode;
	private String phonenum;
	private String phonetype;
	private Date updatedon;

    public Smpregph() {
    }


	@EmbeddedId
	public SmpregphPK getId() {
		return this.id;
	}

	public void setId(SmpregphPK id) {
		this.id = id;
	}
	

    @Temporal( TemporalType.DATE)
	public Date getAddedon() {
		return this.addedon;
	}

	public void setAddedon(Date addedon) {
		this.addedon = addedon;
	}


	@Column(nullable=false, length=3)
	public String getAreacode() {
		return this.areacode;
	}

	public void setAreacode(String areacode) {
		this.areacode = areacode;
	}


	@Column(nullable=false, length=3)
	public String getCountrycode() {
		return this.countrycode;
	}

	public void setCountrycode(String countrycode) {
		this.countrycode = countrycode;
	}


	@Column(nullable=false, length=10)
	public String getPhonenum() {
		return this.phonenum;
	}

	public void setPhonenum(String phonenum) {
		this.phonenum = phonenum;
	}


	@Column(nullable=false, length=20)
	public String getPhonetype() {
		return this.phonetype;
	}

	public void setPhonetype(String phonetype) {
		this.phonetype = phonetype;
	}


    @Temporal( TemporalType.DATE)
	public Date getUpdatedon() {
		return this.updatedon;
	}

	public void setUpdatedon(Date updatedon) {
		this.updatedon = updatedon;
	}

}